package BoBai;

public class NguoiChoi {

	public LaBai[] dslabai;
	
	public	NguoiChoi(BoBais b)
	{
		dslabai = new LaBai[13];
		for (int x=0; x<13; x++)
        {
            dslabai[x] = b.layMotLaBai();
        }
	}
	public void SapBai()
	{
		for(int i = 0 ; i < dslabai.length-1;i++ )
		{
			for(int j = i+1;j < dslabai.length ; j++)
			{
				if(dslabai[i].getSuit() == dslabai[j].getSuit() )
				{
					LaBai temp = dslabai[i+1];
					dslabai[i+1] = dslabai[j];
					dslabai[j] = temp;
					i++;
				}
			}
		}
	}
}
